package edu.westga.cs3152.wordmojo;

import java.awt.*;
import javax.swing.*;

public class WordMojo {
	
	static GamePanel GUIPanel;
	static JFrame frame;
	static final int FRAME_WIDTH = 600;
	static final int FRAME_HEIGHT = 600;
	
	public static void main(String[] args) {
		frame = new JFrame("Word Mojo");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setPreferredSize(new Dimension(FRAME_WIDTH, FRAME_HEIGHT));
		frame.setResizable(false);
		Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
		frame.setLocation(new Point(dimension.width/2 - FRAME_WIDTH/2, dimension.height/2 - FRAME_HEIGHT/2));

		GameBoard board = new GameBoard();
		frame.getContentPane().add(new GamePanel(board));
		
		frame.pack();
		frame.setVisible(true);
	}

}
